package com.an.blog.web.domain.bo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 博客评论网络业务对象
 *
 * @author: Ann
 * @createDate: 2023/06/08 08:49:48
 * @version: 1.0.0
 */
@Data
public class BlogCommentWebBo {


    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空")
    @Size(min = 0,max = 1000,message = "内容不可超过1000字")
    private String commentContent;

    /**
     * 父id
     */
    private Long parentId;

    /**
     * 回答id
     */
    private Long answerId;

    /**
     * 主题id
     */
    @NotNull(message = "评论主题id不能为空")
    private Long topicId;
}
